
def userAvatorPath(instance,filename):
    ext = filename.split(".").pop()
    path = "userAvator/"+"{0}.{1}".format(instance._id,ext)
    return path 

def origanizationLogoPath(instance,filename):
    ext = filename.split(".").pop()
    path = "organizationLogo/"+"{0}.{1}".format(instance.name,ext)
    return path 

def teacherAvatorPath(instance,filename):
    ext = filename.split(".").pop()
    path = "teacherAvator/"+"{0}.{1}".format(instance.name,ext)
    return path 

def classroomImagePath(instance,filename):
    ext = filename.split(".").pop()
    path = "classroomImage/"+"{0}.{1}".format(instance._id,ext)
    return path 
     
def userFilePath(instance,filename):
    ext = filename.split(".").pop()
    path = "userFile/"+"{0}.{1}".format(instance._id,ext)
    return path 
